package com.xpffly.design.adapter.demo.service.impl;

import com.xpffly.design.adapter.demo.service.IOuterUser;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: xpengfei
 * @Date: 2021/4/12 20:38
 * @Description：
 */
public class OuterUser implements IOuterUser {
    /**
     * 获取员工基本信息
     *
     * @return
     */
    public Map<String, String> getUserBaseInfo() {
        Map<String, String> baseInfoMap = new HashMap<String, String>();
        baseInfoMap.put("userName", "员工叫做张三...");
        baseInfoMap.put("mobileNumber", "员工电话是：18136669333");
        return baseInfoMap;
    }

    /**
     * 获取员工工作信息
     *
     * @return
     */
    public Map<String, String> getUserOfficeInfo() {
        Map<String, String> officeInfo = new HashMap<String, String>();
        officeInfo.put("jobPosition", "职位是：boss");
        officeInfo.put("officeTelNumber", "办公电话为：0755-9999999");
        return officeInfo;
    }

    /**
     * 获取员工家庭信息
     *
     * @return
     */
    public Map<String, String> getUserHomeInfo() {
        Map<String, String> homeMap = new HashMap<String, String>();
        homeMap.put("homeTelNumber", "员工家庭电话是：0755-69696969");
        homeMap.put("homeAddress", "员工家庭住址是中国广东");
        return homeMap;
    }
}
